package com.baidu.day5;

public class Student {
    private String name;
    private Integer age;
    //这个叫封装 先设置 后获取

    public void setName(String name) {
        if ("傻逼".equals(name)) {
           this.name="好好学习";
        } else {
            this.name = name;
        }
    }

    public String getName() {
        return this.name;
    }
}







